package org.adorsys.aderp.aderplogin.domain;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;

import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
public class AderpUserData {

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<PermissionProfile> permissionProfiles = new HashSet<PermissionProfile>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<UserRole> userRoles = new HashSet<UserRole>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<AderpPersonRef> personRefs = new HashSet<AderpPersonRef>();

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<AderpUser> aderpUsers = new HashSet<AderpUser>();
}
